<?php
class CompanyServer extends Eloquent {
	protected $table = 'company_server';

	protected $softDelete = true;
    protected $fillable = array('*');

	public static function _create($data){
		$result = new self();
		$result->user_id = Auth::user()->id;
		$result->order_id = $data['order_id'];
		$result->company_name = $data['company_server'];
		$result->province = $data['province'];
		$result->city = $data['city'];
		$result->district = $data['district'];
		$result->email = $data['email'];
		$result->memo = isset($data['memo'])?$data['memo']:"";
		$result->invoice = isset($data['invoice'])?$data['invoice']:"N";
		$result->save();
	}
	
}
